package world3d.world.entities;

import world3d.world.Entity;

import javax.media.opengl.GL2;

public class QuadsEntity extends Entity {

	@Override
	public void display() {
		// Draw A Quad
		gl2.glBegin(GL2.GL_QUADS);
		gl2.glColor3f(0.0f, 1.0f, 1.0f); //0..255. //0xffffff; ox000000  // set the color of the quad
		gl2.glVertex3f(-1.0f, 1.0f, 0.0f);   // Top Left
		gl2.glVertex3f( 1.0f, 1.0f, 0.0f);   // Top Right
		gl2.glVertex3f( 1.0f,-1.0f, -1.0f);   // Bottom Right
		gl2.glVertex3f(-1.0f,-1.0f, 1.0f);   // Bottom Left
		// Done Drawing The Quad
		gl2.glEnd();
	}

	@Override
	public void reshape(int x, int y, int width, int height) {
		System.out.println("x: " +  x +"y: " +  y +"width: " +  width +"height: " +  height);
	}

	@Override
	public void dispose() {

	}
}
